<?php include '../public/header.php' ?>
<?php include '../public/header_index.php' ?>
<body class="laytp-container">
<div id="opt_nav">
    <ul class="layui-nav">
    </ul>
</div>
<div class="layui-card">
    <div class="layui-card-body" style="margin-left: 10px !important;">
        <form class="layui-form layui-form-pane" id="commentForm">
            <div class="main-container" style="margin-left: 0 !important;padding-top: 20px !important;">
                <div class="block-first">
                    <div class="layui-form-item">
                        <div class="layui-row layui-col-space10">
                            <div class="layui-col-md12">
                                <label class="layui-form-label">公司名称</label>
                                <div class="layui-input-block">
                                    <input type="text" id="name" readonly autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row layui-col-space10">
                            <div class="layui-col-md12">
                                <label class="layui-form-label">公司简称</label>
                                <div class="layui-input-block">
                                    <input type="text" id="shortname" readonly autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row layui-col-space10">
                            <div class="layui-col-md12">
                                <label class="layui-form-label">所在地区</label>
                                <div class="layui-input-block">
                                    <input type="text" id="areas" readonly autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row layui-col-space10">
                            <div class="layui-col-md12">
                                <label class="layui-form-label">详细地址</label>
                                <div class="layui-input-block">
                                    <input type="text" id="addres" readonly autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row layui-col-space10">
                            <div class="layui-col-md12">
                                <label class="layui-form-label">联系人</label>
                                <div class="layui-input-block">
                                    <input type="text" id="linker" readonly autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row layui-col-space10">
                            <div class="layui-col-md12">
                                <label class="layui-form-label">联系电话</label>
                                <div class="layui-input-block">
                                    <input type="text" id="linktel" readonly autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row layui-col-space10">
                            <div class="layui-col-md12">
                                <label class="layui-form-label">分支单位数量(个)</label>
                                <div class="layui-input-block">
                                    <input type="text" id="comnum" readonly autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row layui-col-space10">
                            <div class="layui-col-md12">
                                <label class="layui-form-label">用户数量(个)</label>
                                <div class="layui-input-block">
                                    <input type="text" id="usernums" readonly autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row layui-col-space10">
                            <div class="layui-col-md12">
                                <label class="layui-form-label">系统容量(G)</label>
                                <div class="layui-input-block">
                                    <input type="text" id="capacitys" readonly autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-row layui-col-space10">
                            <div class="layui-col-md12">
                                <label class="layui-form-label">服务有效期</label>
                                <div class="layui-input-block">
                                    <input type="text" id="enddts" readonly autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </form>
    </div>
</div>
<script>
    layui.use(['laytp','button'], function() {
        var form = layui.form;

        facade.ajax({url: ask_company_list}).done(function(res){
            if (res['code'] === 2000) {
                var data = res.data;

                $("#name").val(data.name);
                $("#shortname").val(data.shortname);
                $("#areas").val(data.areas);
                $("#addres").val(data.addres);
                $("#linker").val(data.linker);
                $("#linktel").val(data.linktel);
                $("#comnum").val(data.comnum);
                $("#usernums").val(data.usernums);
                $("#capacitys").val(data.capacitys);
                $("#enddts").val(data.enddts);
            }
        });
    });
</script>
</body>
</html>
